package cn.wolfcode.wolf2w.service;

import cn.wolfcode.wolf2w.domain.StrategyComment;
import cn.wolfcode.wolf2w.domain.UserInfo;
import cn.wolfcode.wolf2w.query.StrategyCommentQuery;
import org.springframework.data.domain.Page;

import java.util.List;


public interface IStrategyCommentService {


    /**
     * 查询单个对象
     * @param id
     * @return StrategyComment
     */
    StrategyComment get(String id);

    /**
     * 查询对象集合
     * @param
     * @retstrategyCommentrn
     */
    List<StrategyComment> listAll();


    /**
     * 用于分页排序,高级查询
     * @param qo
     */

    Page<StrategyComment> query(StrategyCommentQuery qo);


    /**
     * 评论点赞操作
     * @param cid
     * @param uid
     */
    void thumbupnum(String cid, String uid);
    /**
     * 新增操作
     * @param strategyComment
     */
    void save(StrategyComment strategyComment);


    void addComment(StrategyComment strategyComment, UserInfo info);
}
